<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>库房药品信息</title>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all"/>
</head>
<body>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
<p style="margin-left: 530px; font-size: 1.3em;">库房药品信息管理</p>
</fieldset>

<form class="layui-form" method="post" id="searchFrm">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">药品名称:</label>
            <div class="layui-input-inline">
                <input type="text" name="drugstoreName"  autocomplete="off" class="layui-input" >
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">类型:</label>
            <div class="layui-input-inline">
                <select name="typeId" id="type"  lay-verify="required" lay-filter="type">
                    <option value=""></option>
                </select>
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">经办人:</label>
            <div class="layui-input-inline">
                <input type="text" name="skullName"  autocomplete="off" class="layui-input" >
            </div>
        </div>

        <button type="button" class="layui-btn layui-btn-normal  layui-icon layui-icon-search" id="doSearch">查询</button>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">库房:</label>
            <div class="layui-input-inline">
                <input type="text" name="warehouseName"  autocomplete="off" class="layui-input" >
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">供货商:</label>
            <div class="layui-input-inline">
                <input type="text" name="supplierName"  autocomplete="off" class="layui-input" >
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">批号:</label>
            <div class="layui-input-inline">
                <input type="text" name="batch"  autocomplete="off" class="layui-input" >
            </div>
        </div>

        <button type="reset" class="layui-btn layui-btn-warm  layui-icon layui-icon-refresh">重置</button>
    </div>

    <!--<div class="layui-inline">
        <label class="layui-form-label">&nbsp;&nbsp;&nbsp;&nbsp;</label>
        <div class="layui-input-inline">
            <button type="button" class="layui-btn layui-btn-normal  layui-icon layui-icon-search" id="doSearch">查询</button>
            <button type="reset" class="layui-btn layui-btn-warm  layui-icon layui-icon-refresh">重置</button>
        </div>
    </div>-->
</form>

<!-- 搜索条件结束 -->
<!-- 添加和修改的弹出层开始 -->
<!-- lay-verify="required"文本框为必填项-->
<div style="display: none;padding: 20px" id="saveOrUpdateDiv" >
    <form class="layui-form"  lay-filter="dataFrm" id="dataFrm">
           <!-- <div class="layui-inline">
                <div class="layui-input-inline">
                    <input type="hidden" name="rugstoreId" lay-verify="required"  placeholder="名称" autocomplete="off"
                           class="layui-input" readonly >
                </div>
            </div>-->

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">名称:</label>
                <div class="layui-input-inline">
                    <input type="text" name="drugstoreName" readonly lay-verify="required" autocomplete="off"
                           class="layui-input" disabled >
                </div>
            </div>

            <div class="layui-inline">
                <label class="layui-form-label">产地:</label>
                <div class="layui-input-inline">
                    <input type="text" name="areaName" readonly lay-verify="required" autocomplete="off"
                           class="layui-input" disabled >
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">计量单位:</label>
                <div class="layui-input-inline">
                    <input type="text" name="unitName" lay-verify="required" autocomplete="off"
                           class="layui-input" disabled="disabled">
                </div>
            </div>

            <div class="layui-inline">
                <label class="layui-form-label">类型:</label>
                <div class="layui-input-inline">
                    <input type="text" name="typeName" lay-verify="required" autocomplete="off"
                           class="layui-input" disabled="disabled">
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">库房:</label>
                <div class="layui-input-inline">
                    <input type="text" name="warehouseName" lay-verify="required" autocomplete="off"
                    class="layui-input" disabled="disabled">
                </div>
            </div>

            <div class="layui-inline">
                <label class="layui-form-label">数量:</label>
                <div class="layui-input-inline">
                    <input type="text" name="drugstoreName" readonly lay-verify="required" autocomplete="off"
                           class="layui-input" disabled >
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">供货商:</label>
                <div class="layui-input-inline">
                    <input type="text" name="supplierName" lay-verify="required" autocomplete="off"
                           class="layui-input" disabled="disabled">
                </div>
            </div>

            <div class="layui-inline">
                <label class="layui-form-label">联系方式:</label>
                <div class="layui-input-inline">
                    <input type="text" name="supplierPhone" readonly lay-verify="required" autocomplete="off"
                           class="layui-input" disabled >
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">批发价:</label>
                <div class="layui-input-inline">
                    <input type="text" name="tradePrice" readonly lay-verify="required" autocomplete="off"
                           class="layui-input" disabled >
                </div>
            </div>

            <div class="layui-inline">
                <label class="layui-form-label">售价:</label>
                <div class="layui-input-inline">
                    <input type="text" name="sellingPrice" lay-verify="required" autocomplete="off"
                           class="layui-input" disabled="disabled">
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">生产日期:</label>
                <div class="layui-input-inline">
                    <input type="text" name="produceDate" readonly lay-verify="required" autocomplete="off"
                           class="layui-input" disabled >
                </div>
            </div>

            <div class="layui-inline">
                <label class="layui-form-label">有效日期:</label>
                <div class="layui-input-inline">
                    <input type="text" name="validDate" lay-verify="required" autocomplete="off"
                           class="layui-input" disabled="disabled">
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">经办人:</label>
                <div class="layui-input-inline">
                    <input type="text" name="skullName" readonly lay-verify="required" autocomplete="off"
                           class="layui-input" disabled >
                </div>
            </div>

            <div class="layui-inline">
                <label class="layui-form-label">批号:</label>
                <div class="layui-input-inline" >
                    <input type="text" name="batch" readonly lay-verify="required" autocomplete="off"
                           class="layui-input" disabled >
                </div>
            </div>
        </div>

        <!--<div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">名称:</label>
                <div class="layui-input-inline">
                    <input type="text" name="drugstoreName" readonly lay-verify="required"  placeholder="名称" autocomplete="off"
                           class="layui-input" readonly >
                </div>
            </div>

            <div class="layui-inline" style="margin-left: 88px;">
                <label class="layui-form-label">库房:</label>
                <div class="layui-input-inline">
                    <input type="text" name="warehouseName" lay-verify="required"   placeholder="库房" autocomplete="off"
                           class="layui-input" disabled="disabled">
                </div>
            </div>

        </div>


       <div class="layui-inline" >
            <label class="layui-form-label">供货商:</label>
            <div class="layui-input-inline">
                <select name="supplierName" id="supplierId" lay-verify="required" lay-filter="xmFilter" disabled="disabled">
                    <option value="" ></option>
                </select>
            </div>
        </div>

    <div class="layui-inline" style="margin-left: 80px;">
            <label class="layui-form-label">经办人:</label>
            <div class="layui-input-inline">
                <select name="skullName" id="skullId" lay-verify="required" lay-filter="xmFilter" disabled="disabled">
                    <option value="" ></option>
                </select>
            </div>
        </div>



        <div class="layui-inline">
            <label class="layui-form-label">批发价:</label>
            <div class="layui-input-inline">
                <input type="text" name="tradePrice" lay-verify="required"  placeholder="批发价" autocomplete="off"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-inline" style="margin-left: 110px;">
            <label class="layui-form-label">售价:</label>
            <div class="layui-input-inline">
                <input type="text" name="sellingPrice" lay-verify="required"  placeholder="售价" autocomplete="off"
                       class="layui-input">
            </div>
        </div>

&lt;!&ndash;       *&ndash;&gt;
&lt;!&ndash;        </div>&ndash;&gt;
        <div class="layui-inline" >
            <label class="layui-form-label" style="margin-left: 80px;">生产日期:</label>
            <div class="layui-input-inline">
                <input type="text" name="produceDate" lay-verify="required"  placeholder="生产日期" autocomplete="off"
                       class="layui-input " disabled="disabled">
            </div>
        </div>
      <div class="layui-inline">
            <label class="layui-form-label">有效日期:</label>
            <div class="layui-input-inline">
                <input type="text" name="validDate" lay-verify="required"  placeholder="有效日期" autocomplete="off"
                       class="layui-input "  disabled="disabled">
            </div>
        </div>
        <div class="layui-inline" style="margin-left: 110px;">
            <label class="layui-form-label">批号:</label>
            <div class="layui-input-inline">
                <input type="text" name="batch" lay-verify="required"  placeholder="批号" autocomplete="off"
                       class="layui-input" >
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">数量:</label>
            <div class="layui-input-inline">
                <input type="text" name="drugstorenum" lay-verify="required"  placeholder="数量" autocomplete="off"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-inline" style="margin-left: 110px;">
            <label class="layui-form-label">单位:</label>
            <div class="layui-input-inline">
                <select name="unitId" id="unitId" lay-verify="required" lay-filter="xmFilter" style="width: 300px">
                    <option value="" ></option>
                </select>
            </div>
        </div>
            <div class="layui-inline" >
                <label class="layui-form-label">类型:</label>
                <div class="layui-input-inline">
                        <select name="typeId" id="typeId" lay-verify="required" lay-filter="xmFilter" style="width: 300px">
                        <option value="" ></option>

                        </select>
                </div>
        </div>

        <div class="layui-form-item" style="text-align: center;">
            <div class="layui-input-block">
                <button type="button" class="layui-btn layui-btn-normal layui-btn-sm layui-icon layui-icon-release" lay-filter="doSubmit" lay-submit="">提交</button>
               &lt;!&ndash; <button type="reset" class="layui-btn layui-btn-warm layui-btn-sm layui-icon layui-icon-refresh" >重置</button>&ndash;&gt;
            </div>
        </div>-->
    </form>
</div>
<!--templet: "<div>{{layui.util.toDateString(d.produceDate, 'yyyy-MM-dd')}}</div>",-->

<!-- 数据表格开始 -->
<table class="layui-hide" id="userTable" lay-filter="userTable"></table>
<div style="display: none;" id="userToolBar">

</div>
<div  id="userBar" style="display: none;">
<!--    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>-->
    <a class="layui-btn layui-btn-xs" lay-event="edit">查看详情</a>
</div>
<!-- 数据表格结束 -->
<script th:src="@{/layui/layui.js}"></script>
<script type="text/javascript" th:inline="none" th:src="@{/hospitalJs/WarehouseManager/c_selectDrug.js}"></script>
</body>
</html>

